package com.lkd.mapper;

import com.lkd.entity.Region;
import com.lkd.vo.RegionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RegionMapper {
    List<RegionVo> selectByCondition(String name);

    void insert(Region region);

    void updateById(Region region);

    RegionVo selectRegionById(String name, String regionId);

    RegionVo selectByNodeId(Long nodeId);

    RegionVo selectRegionByNodeId(Long nodeId);

    RegionVo selectRegionByInnerCode(String innerCode);
}
